<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>$Title$</title>
    <base th:href="${#request.getContextPath()}+'/'">
</head>
<body>


<select id="category" name="category" class="category"
        required lay-verify="required">
   <span th:each="lm:${session.list1}">
   <option th:text="${lm.categoryName}" >
   </option>
   </span>
</select>


<a href="/attractions/preAdd">添加</a>
    <table>
        <tr>
            <th>编号</th>
            <th>描述</th>
            <th>价格</th>
            <th>销量</th>
            <th>店铺</th>
            <th>图片</th>
            <th>操作</th>
        </tr>
        <tr th:each="att: ${list}">
            <td th:text="${att.attractionsId}"></td>
            <td th:text="${att.attractionsDesc}"></td>
            <td th:text="${att.price}"></td>
            <td th:text="${att.soldNum}"></td>
            <td th:text="${att.store}"></td>
            <td>
                <a th:href="'/show/' + ${att.attractionsPic}">
                    <img th:src="'/show/' + ${att.attractionsPic}" width="80px">
                </a>

            </td>
            <td>
                <a href="">详情</a>
            </td>
        </tr>
    </table>
</body>
</html>